package org.celstec.mobilegame.gamaray;

public class FeatureImg extends Feature {
	
	public String assetId;
	
	
	
	public FeatureImg(String id, String assetId, double lat, double lon, String anchor, String onPress){
		super(id,lat, lon, anchor, onPress);
		this.assetId = assetId;
		
	}
	
	public String toXml(String url) {
		String ret = "  <featureImg id=\""+id+"\">\n";
//		ret += "   <id>" + id + "</id>\n";
		ret += "   <assetId>" + assetId + "</assetId>\n";
		ret += "   <location><lat>" + lat + "</lat><lon>"+lon +"</lon></location>\n";
		ret += "   <anchor>" + anchor + "</anchor>\n";
		if (onPress !=null) ret += "   <onPress>dimension: " + url+onPress + "</onPress>\n";
		ret += "   <xLoc>0</xLoc>\n";
		ret += "   <yLoc>0</yLoc>\n";
		ret += "   <zLoc>0</zLoc>\n";
		ret += "   <showInRadar>0</showInRadar>\n";
		ret += "  </featureImg>\n";
		return ret;
	}

}
